<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>防火墙列表</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
	</script>

</head>
<body>
	<%--<ul class="nav nav-tabs">--%>
		<%--<li class="active"><a href="${ctx}/scene/sceneRouter/firewallRuleList?firewallId=${firewallId}&environmentId=${environmentId}">防火墙规则列表</a></li>--%>
		<%--<li><a href="${ctx}/scene/sceneRouter/firewallRuleForm?firewallId=${firewallId}&environmentId=${environmentId}">添加防火墙规则</a></li>--%>

	<%--</ul>--%>
	<c:if test="${firewallName!=null&&firewallName!=''}">
		<table border="0" cellspacing="0" cellpadding="0" align="center" style="margin-top:10px; margin-bottom:10px;">
			<tr>
				<td align="center" id="progressPersent" style="font-size: 14px ;font-weight:bold ;" >${firewallName}</td>
			</tr>
		</table>
	</c:if>

	<input type="hidden" id="type" name="type" value="${type}"/>
	<input type="hidden" id="firewallId" name="firewallId" value="${firewallId}"/>
	<input type="hidden" id="environmentId" name="environmentId" value="${environmentId}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>名称</th>
				<th>协议</th>
				<th>动作</th>
				<th>源IP</th>
				<th>源端口</th>
				<th>目的IP</th>
				<th>目的端口</th>
				<th>IP版本</th>
				<%--<th>操作</th>--%>


			</tr>
		</thead>
		<tbody>
		<c:forEach items="${sceneFirewallRuleList}" var="sceneFirewallRule">
			<tr>
				<td>${sceneFirewallRule.name}</td>
				<td>${sceneFirewallRule.protocol}</td>
				<td>${sceneFirewallRule.action}</td>
				<td>${sceneFirewallRule.sourceIpAddress}</td>
				<td>${sceneFirewallRule.sourcePort}</td>
				<td>${sceneFirewallRule.destinationIpAddress}</td>
				<td>${sceneFirewallRule.destinationPort}</td>
				<td>${sceneFirewallRule.ipVersion}</td>
				<%--<td>--%>
					<%--<a href="${ctx}/scene/sceneRouter/firewallRuleForm?routerId=${routerId}&firewallId=${sceneFirewall.id}">修改</a>--%>
				<%--</td>--%>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="form-actions">
		<input id="btnSubmit" class="btn" type="button" value="返 回" onclick="window.location.href='${ctx}/scene/sceneRouter/firewallList?environmentId=${environmentId}&type=${type}'"/>
		<%--<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>--%>
	</div>
	<%--<div style = "text-align:right;">--%>
		<%--<input id="btnSubmit" style="margin-right: 100px;margin-top: 20px" class="btn btn-primary" type="button" value="保 存" onclick="window.location.href='${ctx}/scene/sceneRouter/topologyRouterList?environmentId=${environmentId}'"/>--%>
	<%--</div>--%>
</body>
</html>